Merged
Conversation
[Bugfix] 프록시 설정
|
Caution Review failedThe pull request is closed. Summary by CodeRabbit
Walkthroughaxios 인스턴스의 baseURL을 환경변수 기반에서 ‘/api’로 변경. Vite 설정을 정적 객체에서 동적 함수로 전환하고, mode별 loadEnv로 VITE_API_BASE_URL을 읽어 서버 프록시(‘/api’ → 대상 URL, changeOrigin/secure, 경로 재작성)를 추가. 플러그인/alias/호스트/포트는 유지. Changes
Sequence Diagram(s)sequenceDiagram
participant B as Browser (App)
participant F as Frontend (Vite Dev)
participant P as Vite Proxy (/api → target)
participant S as Backend API (VITE_API_BASE_URL)
B->>F: axios 요청 to /api/...
F->>P: 프록시 매칭 (/api)
P->>S: /... (경로에서 /api 제거)
S-->>P: 응답
P-->>F: 프록시 응답
F-->>B: 앱에 응답 반환
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚨 관련 이슈
✨ 변경사항
✏️ 작업 내용
😅 미완성 작업
📢 논의 사항 및 참고 사항